package practpl.nuevemod;

import java.io.*;

import org.antlr.runtime.ANTLRFileStream;
import org.antlr.runtime.CharStream;
import org.antlr.runtime.CommonTokenStream;
import org.antlr.runtime.RecognitionException;

public class Procesador9mod 
{
	public static void main(String args[]) throws IOException, RecognitionException {
		try {
			CharStream cs = new ANTLRFileStream(args[0]);
			CommonTokenStream tokens = new CommonTokenStream();

			XMLLexer analex = new XMLLexer(cs);
	        tokens.setTokenSource(analex);

	        XMLParser anasint = new XMLParser(tokens);
	        anasint.elementos();
		}
		catch(IOException ioe) {
			System.err.println(ioe.getMessage());
		}
	}
}

